import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { BGDComponent } from './bgd/bgd.component';
import { FXQBQComponent } from './fxqbq/fxqbq.component';
import { GZQComponent } from './gzq/gzq.component';
import { HDComponent } from './hd/hd.component';
import { HLDZBComponent } from './hldzb/hldzb.component';
import { JCComponent } from './jc/jc.component';
import { JCPDComponent } from './jcpd/jcpd.component';
import { ShpHandleComponent } from './shp-handle.component';
import { SQComponent } from './sq/sq.component';
import { WXDSSComponent } from './wxdss/wxdss.component';

const routes: Routes = [
  {
    path: '',
    component: ShpHandleComponent,
    children: [
      { path: '', redirectTo: 'JC', pathMatch: 'full' },
      //机场
      {
        path: 'JC',
        component: JCComponent,
      },
      //报告点
      {
        path: 'BGD',
        component: BGDComponent,
      },
      //航段
      {
        path: 'HD',
        component: HDComponent,
      },
      //无线电设施
      {
        path: 'WXDSS',
        component: WXDSSComponent,
      },
      //扇区
      {
        path: 'SQ',
        component: SQComponent,
      },
      //机场跑道
      {
        path: 'JCPD',
        component: JCPDComponent,
      },
      //管制区
      {
        path: 'GZQ',
        component: GZQComponent,
      },
      // 航路点坐标
      {
        path: 'HLDZB',
        component: HLDZBComponent,
      },
      //飞行情报区
      {
        path: 'FXQBQ',
        component: FXQBQComponent,
      },
    ],
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class ShpHandleRoutingModule {}
